import 'package:flutter/material.dart';
import 'dart:ui';
import 'package:flutter_screenutil/flutter_screenutil.dart';
const String MONEY="¥";
// 微信APPID:wx4a38aed7a8d37819
// AppSecret:e3b3c94c964e740bcce8f45f571819ef
const String WX_APPID = 'wx4a38aed7a8d37819';
const String WECHAT_UNIVERSAL_LINK="https://aygsh.dmooo.com/";
const String WX_APP_SECRET = 'e3b3c94c964e740bcce8f45f571819ef';
const String TOKEN="token";
const String UID="uid";
const String INFORM="inform";
const String PHONE="phone";
const String PWD="pwd";
const String ALIPAY="alipay";
const String GROUP_NAME="group_name";
const String GROUP_ID="group_id";
const String TRUENAME="truename";
const double BIG2_FONT_SIZE=36;
const double BIG_FONT_SIZE=34;
const double NORMAL_FONT_SIZE=30;
const double SMALL_FONT_SIZE=26;
const double MINI_FONT_SIZE=22;
const double NINIEST_FONT_SIZE=19;

const String BANK_ID="bank_id";
const String BANK_NAME="bank_name";

double tabHeight = ScreenUtil().setWidth(60);
double kWindowstateHeight =
      MediaQueryData.fromWindow(window).padding.top; //状态栏
// double kScreenWidth = ScreenUtil().setWidth(750);
double kScreenHeight = ScreenUtil.getInstance().setHeight(1334);
double kMargin5 = ScreenUtil.getInstance().setWidth(5);
double kMargin10 = ScreenUtil.getInstance().setWidth(10);
double kMargin15 = ScreenUtil.getInstance().setWidth(15);
double kMargin20 = ScreenUtil.getInstance().setWidth(20);
double kMargin30 = ScreenUtil.getInstance().setWidth(30);
double kMargin40 = ScreenUtil.getInstance().setWidth(40);
double kMargin25 = ScreenUtil.getInstance().setWidth(25);
double kMargin28 = ScreenUtil.getInstance().setWidth(28);
double kMargin60 = ScreenUtil.getInstance().setWidth(60);
double kMargin80 = ScreenUtil.getInstance().setWidth(80);
double kMargin100 = ScreenUtil.getInstance().setWidth(100);
double kMargin120 = ScreenUtil.getInstance().setWidth(120);
double kMargin140 = ScreenUtil.getInstance().setWidth(140);
double kSearchBarHeight=ScreenUtil.getInstance().setWidth(60);

const double DP_100=100;
const double DP_160=160;
const double DP_200=200;
const double DP_250=250;
const double DP_280=280;
const double DP_300=300;
const double DP_320=320;
const double DP_450=450;
const double DP_400=400;
const double DP_600=600;
const double DP_340=340;
const double DP_330=330;
const double DP_350=350;
const double DP_90=90;
const double DP_94=94;
const double DP_110=110;
const double DP_120=120;
const double DP_150=150;
const double DP_180=180;
const double DP_15=15;
const double DP_40=40;
const double DP_20=20;
const double DP_50=50;
const double DP_30=30;
const double DP_60=60;
const double DP_70=70;
const double DP_80=80;
const double DP_10=10;
const double DP_8=8;

const mainColor=Color.fromRGBO(235,95,61,1);
const divideColor=Color.fromARGB(255,246,246,246);
const f0Color=Color.fromARGB(255, 240, 240, 240);
const white=Colors.white;
const black=Colors.black;
const black_99=Color.fromARGB(255, 99, 99, 99);
const grey=Color.fromARGB(88, 194,190,190);
Color hexToColor(String s) {
  // 如果传入的十六进制颜色值不符合要求，返回默认值
  if (s == null || s.length != 7 || int.tryParse(s.substring(1, 7), radix: 16) == null) {
    s = '#999999';
  }

  return new Color(int.parse(s.substring(1, 7), radix: 16) + 0xFF000000);
}